package com.blog.service.Impl;

import com.blog.dao.ThumbsUpMapper;
import com.blog.pojo.ThumbsUp;
import com.blog.service.ThumbsUpService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * Copyright (C), 2022
 * Author: 苏大大
 * Date: 2022-04-25 17:05
 * FileName: ThumbsUpServiceImpl
 * Description:
 */
@Service
public class ThumbsUpServiceImpl implements ThumbsUpService {
    @Resource
    private ThumbsUpMapper mapper;

    @Override
    public int deleteThumbsUp(Long blogId, Long uid) {
        return mapper.deleteThumbsUp(blogId, uid);
    }

    @Override
    public  int insetThumbsUp(ThumbsUp thumbsUp) {
        return mapper.insert(thumbsUp);
    }

    @Override
    public ThumbsUp selectThumbsUp(Long blogId, Long uid) {
        return mapper.selectThumbsUp(blogId, uid);
    }
}
